package fi.foyt.cs.persistence.domainmodel.locale;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

@Entity
public class LocaleText {

  public Key getId() {
    return id;
  }
  
  public String getLocale() {
    return locale;
  }
  
  public void setLocale(String locale) {
    this.locale = locale;
  }
  
  public Long getLocaleElementId() {
    return localeElementId;
  }
  
  public void setLocaleElementId(Long localeElementId) {
    this.localeElementId = localeElementId;
  }
  
  public String getText() {
    return text;
  }
  
  public void setText(String text) {
    this.text = text;
  }
  
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;
  
  @Column (nullable = false) 
  private Long localeElementId;
  
  @Column (nullable = false)
  private String locale;
  
  @Column (nullable = false)
  private String text;
}
